package com.tx.logsys.test;

import com.tx.logsys.util.MD5Util;

import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

/**
 * @ClassName : MainTest365
 * @Description :
 * @Author : kk-liqiang
 * @Date: 2020-09-03 11:48
 */
public class MainTest365 {

    public static void main(String[] args) {

        String APIURL = "https://openapi.waiqin365.com/api/";
        String OPENID = "7905800163465908101";
        String APPKEY = "rHmdOJmPy76K0yLXv0";
        String APITYPE = "POST";
        String API_URL = "";
//        String BODY = "{\"page_number\":\"1\",\"purchase_no\":\"DD20200905005025\",\"start_modify_date\":\"2020-09-03\",\"end_modify_date\":\"2020-09-03\"}";
//        String BODY = "{\"page_number\":\"1\",\"purchase_no\":\"DD20200905005025\",\"start_modify_date\":\"2020-09-05\",\"end_modify_date\":\"2020-09-05\"}";
        String BODY = "{\"page_number\":\"1\",\"purchase_no\":\"DD20200905005025\",\"start_create_date\":\"2020-09-05\",\"end_create_date\":\"2020-09-05\"}";

        String digest = BODY + "|" + APPKEY + "|" + "20200902174740";
        digest = MD5Util.md5(digest);

        System.out.println(digest.toLowerCase());

    }

}
